package com.authsphere.security.common;

/**
 * @program: AuthSphere
 * @description:
 * @author: YuKai Fan
 * @create: 2025/3/13 11:46
 **/
public enum ResponseCode {

    SUCCESS(0, "success", "成功"),
    TOKEN_EXPIRED(401, "token_expired", "认证已过期，请重新登录"),
    TOKEN_NOT_FOUND(401, "token_not_found", "未认证，请登录"),
    TOKEN_ERROR(401, "token_error", "认证失败，请重新登录"),
    ;

    private final int codeValue;
    private final String code;
    private final String message;

    ResponseCode(int codeValue, String code, String message) {
        this.codeValue = codeValue;
        this.code = code;
        this.message = message;
    }

    public int getCodeValue() {
        return codeValue;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
